using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Security.Cryptography;
using PlugNT.Safe;
using PlugNT.Cms.Custom;
using PlugNT.Cms.Model;

namespace PlugNT.Cms.BLL
{
    public class Field
    {

        private static readonly PlugNT.Cms.DAL.Field dal = new PlugNT.Cms.DAL.Field();







        public FieldInfo GetFieldInfo(int id)
        {
            return dal.GetFieldInfo(id);
        }

        public string[] GetFieldArr(int sysModelId, string colName)
        {
            return dal.GetFieldArr(sysModelId, colName);
        }





        public bool Add(FieldInfo model)
        {
            return dal.Add(model);
        }






        public bool Update(FieldInfo model)
        {
            return dal.Update(model);
        }







        public bool Delete(int id)
        {
            return dal.Delete(id);
        }








        public DataTable GetList(int sysModelId, string andWhere)
        {
            return PlugNT.Cms.DAL.Field.GetList(sysModelId, andWhere);
        }







        public DataTable GetBindList(int sysModelId)
        {
            return dal.GetBindList(sysModelId);
        }








        public int GetCount(int sysModelId, string andWhere)
        {
            return dal.GetCount(sysModelId, andWhere);
        }







        public bool Exists(int sysModelId, string colName)
        {
            return dal.Exists(sysModelId, colName);
        }



    }
}

